package com.dps.omc.shell;

import com.dps.omc.model.Server;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by lip on 2016-07-15.
 */
public class ServerParaMap {

    private static Map<String,Server> map = new HashMap<String, Server>();

    public static void putServer(String serverId,Server server)
    {
        map.put(serverId,server);
    }

    public static Server getServer(String serverId)
    {
        return map.get(serverId);
    }

    public static void  remove(String serverId)
    {
        map.remove(serverId);
    }
}
